export type HistoryItemType = 'QUESTION' | 'IMAGE';

export interface HistoryItem {
  id: string;
  type: HistoryItemType;
  title: string;
  summary: string;
  tags: string[];
  metadata: Record<string, unknown>;
  timestamp: string;
}

export interface HistoryStats {
  totalQuestionRecords: number;
  totalImageRecords: number;
  latestQuestionTime?: string;
  latestImageTime?: string;
}

export interface HistoryResponse {
  stats: HistoryStats;
  items: HistoryItem[];
}

